package com.newzqxq.common.enums;

public enum RegisterEnums {


    COMPLETED("COMPLETED","完成支付")
    ,PENDING("PENDING","等待用户支付");

    private String code;
    private String message;

    RegisterEnums(String code, String message) {
        this.code = code;
        this.message = message;
    }
    public static RegisterEnums getByCode(String code){
        for (RegisterEnums enums: RegisterEnums.values()){
            if (enums.getCode().equals(code)){
                return enums;
            }
        }
        return null;
    }
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
